package exam01sellTicket;

/*
* 一共有1000张电影票,可以在两个窗口领取,
* 假设每次领取的时间为3000毫秒要求:请用多线程模拟卖票过程并打印剩余电影票的数量
* */
public class ThreadDemo {
    public static void main(String[] args) {
        MyThread.total = 100;
        MyThread window1 = new MyThread("窗口1");
        MyThread window2 = new MyThread("窗口2");

        window1.start();
        window2.start();
    }



}
